//
//  YSEmoticonButton.m
//  YSEmoticonKeyboard
//
//  Created by MOLBASE on 2017/12/21.
//  Copyright © 2017年 YangShen. All rights reserved.
//

#import "YSEmoticonButton.h"

@implementation YSEmoticonButton

- (void)setEmotionName:(NSString *)emotionName {
    _emotionName = emotionName;
    
    UIImage *image = [UIImage imageNamed:emotionName];
    if (image) {
        [self setImage:image forState:UIControlStateNormal];
    }
    self.userInteractionEnabled = image == nil ? NO : YES;
}

@end
